<!DOCTYPE html>
<html>
    <head>
        <title>
            @section('title')
            Documentor
            @show
        </title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">

			<!-- CSS are placed here -->
			{{ HTML::style('css/bootstrap.css') }}
			{{ HTML::style('css/bootstrap-theme.css') }}
			{{ HTML::script('js/jquery-1.11.2.js') }}
			{{ HTML::script('js/jquery-ui.min.js') }}
			{{ HTML::style('css/custom.css') }}
			
        @section('css')
			<!-- customize css script -->
		@show
		
        @section('styles')
        <style>
            body {
                padding-top: 60px;
            }
        </style>
        @show
    </head>

    <body>
	
        <!-- Navbar -->
        <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Documentor</a>
                </div>
                <!-- Everything you want hidden at 940px or less, place within here -->
                <div class="collapse navbar-collapse">
                    <ul class="nav navbar-nav">
                        <li><a href="{{{ URL::to('') }}}">Home</a></li>
                        @if ( Auth::guest() )
                            <li>{{ HTML::link('login', 'Login') }}</li>
                        @else
                            <li>{{ HTML::link('scanDocument', 'Scan Document') }}</li> 
							@if (Auth::User()->isAdmin())
								<li>{{ HTML::link('users', 'Admin') }}</li> 
							@endif
                            <li>{{ HTML::link('logout', 'Logout') }}</li>
                        @endif
                    </ul> 
                </div>
            </div>
        </div> 
		
        <!-- Container -->
        <div class="container">

            <!-- Success-Messages -->
            @if ($message = Session::get('success'))
                <div class="alert alert-success alert-block">
                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                    <h4>Success</h4>
                    {{{ $message }}}
                </div>
            @endif

            <!-- Content -->
            @yield('content')
        </div>

		@section('endscript')
			<!-- Scripts are placed here -->
			{{ HTML::script('js/bootstrap.min.js') }}
			
        @show
		
        @section('js')
			<!-- customize js script -->
		@show			

		@section('footer')
		@show
		
    </body>
</html>